home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 001 / butil.arc / BIN2DEC.DOC < prev    next >
Encoding:
Text File  |  1985-09-06  |  889 b   |  34 lines

  1. .he MAKEDB Convert binary to "DB's"        Page #
  2. .op
  3. .pl 60
  4.  
  5.     MAKEDB takes input from a file and outputs lines of
  6. text that contain the decimal value for each byte, separated
  7. by commas. This is used mostly for entering large arbitrary
  8. blocks of data to an assembler or for BASIC data statements.
  9.  
  10.     MAKEDB keeps all lines less than 47 characters long,
  11. so they'll fit on 80 column paper when used with MASM.
  12. Output is sent to the console, so you'll need to use
  13. redirection to save the output. The Lattice runtime package
  14. has built in redirection, so this works even on version 1.xx
  15. DOS.
  16.  
  17.     If your binary input file contains:
  18.  
  19. 0000:    00 10 20 c0 ff 00 10 20 c0 ff 00 10 20 c0 ff 
  20.  
  21.     The output looks like:
  22.  
  23.     db    0,16,32,192,255,0,16,32,192
  24.     db    255,0,16,32,192,255,0,16,32
  25.     db    192,255
  26.  
  27.     For BASIC, just change the DB's to DATAs.
  28.  
  29.  
  30.     To invoke, type:
  31.  
  32.     MAKEDB <file>
  33.  
  34.